package com.sx.zongzhi.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by XZY on 2017/12/29.
 */

public class BusinessBean implements Serializable,MultiItemEntity {

    @Override
    public int getItemType() {
        if ("alongRailwayPeople".equals(typeKeyName)){
            return 2;
        }else {
            return 1;
        }
    }

    /**
     * subTypes : []
     * typeCname : 重点青少年
     * typeKeyName : idleYouth
     */

    private String typeCname;
    private String typeKeyName;
    private List<SubTypesBean> subTypes;

    public String getTypeCname() {
        return typeCname;
    }

    public void setTypeCname(String typeCname) {
        this.typeCname = typeCname;
    }

    public String getTypeKeyName() {
        return typeKeyName;
    }

    public void setTypeKeyName(String typeKeyName) {
        this.typeKeyName = typeKeyName;
    }

    public List<SubTypesBean> getSubTypes() {
        return subTypes;
    }

    public void setSubTypes(List<SubTypesBean> subTypes) {
        this.subTypes = subTypes;
    }


    public static class SubTypesBean {
        /**
         * subTypeCname : 重点青少年
         * subTypeKeyName : idleYouth
         */

        private String subTypeCname;
        private String subTypeKeyName;
        private List<OrgsBean> orgs;

        public List<OrgsBean> getOrgs() {
            return orgs;
        }

        public void setOrgs(List<OrgsBean> orgs) {
            this.orgs = orgs;
        }

        public String getSubTypeCname() {
            return subTypeCname;
        }

        public void setSubTypeCname(String subTypeCname) {
            this.subTypeCname = subTypeCname;
        }

        public String getSubTypeKeyName() {
            return subTypeKeyName;
        }

        public void setSubTypeKeyName(String subTypeKeyName) {
            this.subTypeKeyName = subTypeKeyName;
        }
    }

    public static class OrgsBean {
        private String id;
        private String orgName;

        public OrgsBean() {
        }

        public OrgsBean(String id, String orgName) {
            this.id = id;
            this.orgName = orgName;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getOrgName() {
            return orgName;
        }

        public void setOrgName(String orgName) {
            this.orgName = orgName;
        }
    }
}
